// 查询文章数量
$.ajax({
    type: 'get',
    url: '/posts/count',
    success: function (response) {
        let html = '<strong>' + response.postCount + '</strong>篇文章（<strong>' + response.draftCount +
            '</strong>篇草稿）';
        $('#post').html(html);
    }
});
// 查询分类数量
$.ajax({
    type: 'get',
    url: '/categories/count',
    success: function (response) {
        let html = '<strong>' + response.categoryCount + '</strong>个分类';
        $('#category').html(html);
    }
});
// 查询评论数量
$.ajax({
    type: 'get',
    url: '/comments/count',
    success: function (response) {
        let html = '<strong>' + response.commentCount + '</strong>条评论';
        $('#comment').html(html);
    }
})